Skip to content

Conversation

@jaguar1975cn
Copy link

Currently, the module can customize the output file path and name. But it lacks the ability to customize the input .env file name.

This pull request added the support of environment variable REACT_APP_DOTENV_CONFIG_PATH, if it is defined, the .config() method will use its value to configure dotenv, otherwise, default value .env will be used.

Usage:

REACT_APP_DOTENV_CONFIG_PATH=.env.prod npx react-inject-env set -d env -n env.prod.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant